package com.bluejie.springBoot.entity.rpc;

/**
 * Created by bluej on 2018-03-11.
 */
public class RpcData<T> {
    private boolean rpcFlag = true;
    private T data;
    public RpcData(){}
    public RpcData(T data){
        this.data = data;
    }
    public RpcData(boolean rpcFlag,T data){
        this(data);
        this.rpcFlag = rpcFlag;
    }

    public boolean isRpcFlag() {
        return rpcFlag;
    }

    public void setRpcFlag(boolean rpcFlag) {
        this.rpcFlag = rpcFlag;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RpcData{" +
                "rpcFlag=" + rpcFlag +
                ", data=" + data +
                '}';
    }
}
